package ua.pp.pycb6a.seposition;

import static ua.pp.pycb6a.seposition.helper.LoggerHelper.getLogger;
import static ua.pp.pycb6a.seposition.helper.WriterHelper.closeWriter;
import static ua.pp.pycb6a.seposition.helper.WriterHelper.setWriter;
import static ua.pp.pycb6a.seposition.helper.WriterHelper.writeTime;
import ua.pp.pycb6a.seposition.analysis.GoogleAnalysis;
import ua.pp.pycb6a.seposition.analysis.YandexAnalysis;

public final class SePosition {

    private static final String RESULT_FILE = "results.txt";

    private SePosition() {

    }

    public static void main(String[] args) {

        setWriter(RESULT_FILE);
        writeTime();

        YandexAnalysis yandex = new YandexAnalysis();
        yandex.analyse();

        GoogleAnalysis google = new GoogleAnalysis();
        google.analyse();

        getLogger().info("Finish!");
        closeWriter();

    }

}
